import { banner } from "../../utils/interface";
Page({
  data: {
    swiperList: [],
    concentrationList: [
      {
        author: "",
        categoryId: 2944,
        commentNumber: 228,
        dateAdd: "2018-11-06 16:24:45",
        dateUpdate: "2022-10-21 10:48:02",
        descript:
          "我记得被色彩惊艳到的《英雄》，视觉冲击会让人爱上这种感觉，似乎在色彩里，更能看出一个人物心情，和当时社会背景。",
        hasTourJourney: false,
        id: 9845,
        income: "",
        isDraft: false,
        isRecommend: true,
        keywords: "",
        numberFav: 0,
        organizeEditable: false,
        paixu: 0,
        pic:
          "https://cdn.it120.cc/apifactory/2018/11/06/da659b625bec741fc8aa906e7cb60cbe.png",
        shopId: 0,
        signType: 0,
        status: 2,
        statusStr: "审核通过",
        tags: "",
        title: "《影》螳螂捕蝉黄雀在后",
        uid: 0,
        unusefulNumber: 0,
        usefulNumber: 0,
        userId: 6938,
        views: 110012,
      },
      {
        author: "",
        categoryId: 2944,
        commentNumber: 228,
        dateAdd: "2018-11-06 16:24:45",
        dateUpdate: "2022-10-21 10:48:02",
        descript:
          "我记得被色彩惊艳到的《英雄》，视觉冲击会让人爱上这种感觉，似乎在色彩里，更能看出一个人物心情，和当时社会背景。",
        hasTourJourney: false,
        id: 9845,
        income: "",
        isDraft: false,
        isRecommend: true,
        keywords: "",
        numberFav: 0,
        organizeEditable: false,
        paixu: 0,
        pic:
          "https://cdn.it120.cc/apifactory/2018/11/06/da659b625bec741fc8aa906e7cb60cbe.png",
        shopId: 0,
        signType: 0,
        status: 2,
        statusStr: "审核通过",
        tags: "",
        title: "《影》螳螂捕蝉黄雀在后",
        uid: 0,
        unusefulNumber: 0,
        usefulNumber: 0,
        userId: 6938,
        views: 110012,
      },
      {
        author: "",
        categoryId: 2944,
        commentNumber: 228,
        dateAdd: "2018-11-06 16:24:45",
        dateUpdate: "2022-10-21 10:48:02",
        descript:
          "我记得被色彩惊艳到的《英雄》，视觉冲击会让人爱上这种感觉，似乎在色彩里，更能看出一个人物心情，和当时社会背景。",
        hasTourJourney: false,
        id: 9845,
        income: "",
        isDraft: false,
        isRecommend: true,
        keywords: "",
        numberFav: 0,
        organizeEditable: false,
        paixu: 0,
        pic:
          "https://cdn.it120.cc/apifactory/2018/11/06/da659b625bec741fc8aa906e7cb60cbe.png",
        shopId: 0,
        signType: 0,
        status: 2,
        statusStr: "审核通过",
        tags: "",
        title: "《影》螳螂捕蝉黄雀在后",
        uid: 0,
        unusefulNumber: 0,
        usefulNumber: 0,
        userId: 6938,
        views: 110012,
      },
    ],
    tuijianList: [
      {
        id: 1001,
        characteristic: "随身私人影院 娱乐更护眼",
        name: "便携式高清投影仪",
        pic:
          "https://dcdn.it120.cc/2019/07/24/e2d4f82f-f9af-48ff-9865-61561fd4c2f1.jpg",
        miniprice: 2000,
      },
      {
        id: 1002,
        characteristic: "随身私人影院 娱乐更护眼",
        name: "便携式高清投影仪",
        pic:
          "https://dcdn.it120.cc/2019/07/24/a1fbfafc-07c3-4550-8d29-00265d665507.jpg",
        miniprice: 2000,
      },
      {
        id: 1003,
        characteristic: "随身私人影院 娱乐更护眼",
        name: "便携式高清投影仪",
        pic:
          "https://cdn.it120.cc/apifactory/2018/11/06/cb9a3a9d23faf30742cdf76b21b6e29a.jpg",
        miniprice: 2000,
      },
    ],
  },
  onLoad() {
    this.getBannerList();
  },
  //获取轮播图
  async getBannerList() {
    let { data: res } = await banner();
    this.setData({
      swiperList: res.data,
    });
  },
  goto(e) {
    let id = e.detail;
    wx.navigateTo({
      url: "/pages/detail/detail?id=" + id,
    });
  },
});
